package com.mbcn.action;


import com.mbcn.dao.ItemDAO;
import com.mbcn.dao.ItemDetailsDAO;
import com.mbcn.dao.impl.ItemDAOImpl;
import com.mbcn.dao.impl.ItemDetailsDAOImpl;
import com.mbcn.model.Item;
import com.mbcn.pageModel.ItemDetails;
import com.mbcn.system.commonUtil.BaseUserAction;

public class ItemDetailsAction extends BaseUserAction {
	
	ItemDetails itemDetails = new ItemDetails();
	ItemDetailsDAO itemDetailsDAO = new ItemDetailsDAOImpl();

	public String execute() throws Exception {
		return SUCCESS;
	}

	public Object getModel() {
		return itemDetails;
	}

		
	public String itemDetails() throws Exception {
		try {
			itemDetails = itemDetailsDAO.loadItemDetails(itemDetails.getItemId());
		} catch (Exception e) {
			e.printStackTrace();
		}
		return SUCCESS;

	}
	
	

}